using UnityEngine;
using System.Collections;
using System;
using System.Text;
using JSON;
using System.Collections.Generic;

public class BaseModel : ModuleComponent<BaseModel>,IGameModel {
	public string ModueName = "Base";
	public enHomeViewID homeFirstPane = enHomeViewID.role;


	public string UUID{
		get{ 
			return MyPlayerPrefabs.getString("UUID",SystemInfo.deviceUniqueIdentifier);
		}
	}

    
	public void Awake(){
		GameObject.DontDestroyOnLoad (gameObject);
	}
	/// <summary>
	/// 初始化只允许初始化自身内部数据
	/// </summary>
	public override void Init(){
		
		base.Init ();
	}
	public void ReceiveData(NetCommand commandId, JSONNode jData){
		//userData.ReceiveData (commandId, jData);
	
	}

	public void ReceiveErrorData(NetCommand commandId, JSONNode jData){
		if (jData ["Data"].ToString () == "Error_NoDiamond") {
//			ViewUIMgr.Instance.ShowViewUI<ConfirmDialog1_View> (ViewUIPanelDepth.Top).Show ("钻石不足", "确定", null);
		}
	}


}












